/*
 * @(#)UserAuthHspClient.java   1.0  2022年1月21日
 * 
 * Copyright (c)	2014-2020. All Rights Reserved.	GuangZhou hhmk Technology Company LTD.
 */
package com.swift.api.ssp;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * 添加说明 
 * @author zhengjiajin
 * @version 1.0 2022年1月21日
 */
public class UserAuthHspClient extends NettyClient {

    private ChannelInitializer<SocketChannel> channelInitializer;
    
    private String ip;
    
    private int port;
    
    /** 
     * @see com.swift.api.ssp.NettyClient#channelInitializer()
     */
    @Override
    protected ChannelInitializer<SocketChannel> channelInitializer() {
        return channelInitializer;
    }

    /** 
     * @see com.swift.api.ssp.NettyClient#protocolPort()
     */
    @Override
    protected int protocolPort() {
        return port;
    }

    /** 
     * @see com.swift.api.ssp.NettyClient#protocolIp()
     */
    @Override
    protected String protocolIp() {
        return ip;
    }

    /** 
     * @see com.swift.api.ssp.NettyClient#checkStart()
     */
    @Override
    protected boolean checkStart() {
        return true;
    }

    /**
     * @return the channelInitializer
     */
    public ChannelInitializer<SocketChannel> getChannelInitializer() {
        return channelInitializer;
    }

    /**
     * @param channelInitializer the channelInitializer to set
     */
    public void setChannelInitializer(ChannelInitializer<SocketChannel> channelInitializer) {
        this.channelInitializer = channelInitializer;
    }

    /**
     * @return the ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param ip the ip to set
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * @return the port
     */
    public int getPort() {
        return port;
    }

    /**
     * @param port the port to set
     */
    public void setPort(int port) {
        this.port = port;
    }

}
